public class ToStringMethodTest 
{
    private String companyName;
    private String companyAddress;
    public ToStringMethodTest(String companyName, String companyAddress) 
    {
        this.companyName = companyName;
        this.companyAddress = companyAddress;
    }
    	public static void main(String[] args) 
	{
             ToStringMethodTest test = new ToStringMethodTest("XENSOFT private Ltd","10, BG Street, BLR Town");
             System.out.println(test);
        }
 
    	public String toString() 
	{
        	return ("Company Name: " + companyName + "n" + "Company Address: " + companyAddress);
       }
}